package com.example.auth.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@RestController
@RequestMapping("/auth")
@RefreshScope
public class AuthController {
    @Value("${mysql.driver}")
    private String driverClass;
    @GetMapping("/auth")
    public String auth(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        System.out.println("driverClass =="+driverClass);
        return  "auth";
    }
}
